layui.use(['form','jquery'], function() {
    var form = layui.form,
        $ = layui.$;
    //登录按钮
    form.on("submit(login)", function (data) {
        $(this).text("登录中...").attr("disabled", "disabled").addClass("layui-disabled");
        data.form.submit();
        return true;
    });
    function tips(){
        if($("#erro").attr("value")!="" ){
            layer.msg($("#erro").attr("value"), {icon: 5,area :['182px','66px']});
        }
    }
    tips();
});